import React from 'react';

function Message({ text, timestamp }) {
    return (
        <div>
            <p>{text}</p>
            <small>{new Date(timestamp).toLocaleTimeString()}</small>
        </div>
    );
}

export default Message;
